from math import pow, sqrt

def parseResults(resultsStr):
	times = {}
	lines = resultsStr.split("\n")
	for line in lines:
		components = line.split("-")
		
		try:
			times[components[0]]
		except KeyError:
			times[components[0]] = []
			
		times[components[0]].append(float(components[3][:-3]))
	
	meanTimes = {}
	stdDeviations = {}
	for input in times.keys():
		meanTimes[input] = sum(times[input])/len(times[input])
		stdDeviations[input] = 0
		for time in times[input]:
			stdDeviations[input] += pow(time - meanTimes[input], 2)
		stdDeviations[input] = sqrt(stdDeviations[input]/len(times[input]))
	
	print "Input - NumExecutions - Mean Time - Standard Deviation"
	for input in times.keys():
		print input, "-", len(times[input]), "-", meanTimes[input], "-", stdDeviations[input]
		
if __name__ == "__main__":
	print "Input File: "
	rStr = open(raw_input()).read()
	parseResults(rStr)